.reviews-section {
    background: linear-gradient(135deg, #27548A 10%, #4A7BA7 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    box-sizing: border-box;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.reviews-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.reviews-header .section-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    position: relative;
}

.reviews-subtitle {
    font-size: 1.2rem;
    color: white;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.reviews-carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.reviews-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 10px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.reviews-carousel {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.review-card {
    min-width: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.review-content {
    padding: 3rem 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    min-height: 220px;
}

.review-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #000000;
    padding: 3px;
    transition: all 0.4s ease;
}

.review-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: #000000;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.review-card.active .review-avatar::before {
    opacity: 0.3;
    animation: pulse-avatar 3s ease-in-out infinite;
}

@keyframes pulse-avatar {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
    background: white;
}

.review-card.active .review-avatar img {
    transform: scale(1.05);
}

.review-stars {
    font-size: 1.1rem;
    color: #fbbf24;
    letter-spacing: 2px;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
    position: relative;
}

.review-stars::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    border-radius: 1px;
}

.review-text-section {
    padding-left: 1rem;
}

.review-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.review-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 400;
    font-style: italic;
    padding-left: 2rem;
}

.review-author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(59, 130, 246, 0.1);
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.author-title {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.review-date {
    font-size: 0.85rem;
    color: #94a3af;
    font-weight: 500;
    background: #f8fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, visibility 0.3s ease;
    color: #3b82f6;
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
}

/* Show arrows on carousel hover */
.reviews-carousel-container:hover .carousel-arrow {
    opacity: 1;
    visibility: visible;
}

.carousel-arrow:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 12px 30px rgba(59, 130, 246, 0.3),
        0 6px 20px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow--prev {
    left: 25px;
}

.carousel-arrow--next {
    right: 25px;
}

/* Dots Indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0;
}

.dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.dot.active {
    background: #3b82f6;
    transform: scale(1.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.dot.active::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .reviews-section {
        padding: 5rem 0;
    }
    
    .review-content {
        gap: 2rem;
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 4rem 0;
    }
    
    .reviews-header .section-title {
        font-size: 2.5rem;
    }
    
    .reviews-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .review-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
        gap: 2rem;
    }
    
    .review-text-section {
        padding-left: 0;
    }
    
    .review-title {
        font-size: 1.4rem;
    }
    
    .review-quote {
        font-size: 1rem;
        text-align: left;
        padding-left: 1.5rem;
    }
    
    .review-author-info {
        justify-content: center;
        gap: 2rem;
        text-align: center;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
        margin: -100px;
    }
    
    .carousel-arrow--prev {
        left: 15px;
    }
    
    .carousel-arrow--next {
        right: 15px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .carousel-arrow {
        min-width: 50px;
        min-height: 50px;
        width: 50px;
        height: 50px;
        opacity: 1;
        visibility: visible;
    }
    
    .dot {
        min-width: 20px;
        min-height: 20px;
        width: 20px;
        height: 20px;
    }
    
    .dot.active {
        transform: scale(1.2);
    }
    
    /* Remove hover effects on touch devices */
    .carousel-arrow:hover {
        background: rgba(255, 255, 255, 0.9);
        color: #3b82f6;
        transform: translateY(-50%) scale(1);
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.1),
            0 4px 12px rgba(0, 0, 0, 0.05);
        border-color: rgba(59, 130, 246, 0.2);
    }
    
    .dot:hover {
        background: #d1d5db;
        transform: scale(1);
    }
}

/* High contrast mode accessibility */
@media (prefers-contrast: high) {
    .carousel-arrow {
        border: 3px solid currentColor;
        background: white;
    }
    
    .dot {
        border: 2px solid currentColor;
    }
    
    .dot.active {
        background: currentColor;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .carousel-arrow,
    .dot,
    .review-card {
        transition: none;
    }
    
    .dot.active::after {
        animation: none;
    }
}